/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const cardRouter = {
  path: '/card',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Card',
  alwaysShow: true,
  meta: {
    title: '储值卡管理',
    icon: 'card',
    permission: '/card'
  },
  children: [
    {
      path: 'card',
      component: () => import('@/views/card/master'),
      name: 'Master',
      meta: { title: '主卡管理', icon: 'master', noCache: true, permission: '/card/master' }
    },
    {
      path: 'recharge',
      component: () => import('@/views/card/recharge.vue'),
      name: 'Recharge',
      meta: { title: '充值记录', icon: 'recharge', noCache: true, permission: '/card/recharge' }
    }
  ]
}

export default cardRouter
